package com.heima.article.controller.v1;


import com.heima.article.mapper.ApCollectionMapper;
import com.heima.article.service.IApCollectionService;
import com.heima.model.article.dtos.ApCollectionDto;
import com.heima.model.article.pojos.ApCollection;
import com.heima.model.common.dtos.ResponseResult;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP收藏信息表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-07-05
 */
@RestController
@RequestMapping("/api/v1")
@AllArgsConstructor
public class ApCollectionController {


    private final IApCollectionService apCollectionService;

    @PostMapping("/collection_behavior")
    public ResponseResult collect(@RequestBody ApCollectionDto dto) {
       return apCollectionService.insert(dto);
    }

}
